<div class='item'>
  <div class='img'>
    <%= image_tag 'money/fetion.jpg', :size => '105x78' %>
  </div>
  <div class='text'>
    <div class='line1'>
      绑定飞信机器人！
    </div>
    <div class='line2'>
      <b>任务目标：</b>绑定飞信机器人，获得免费无限量短信功能！
    </div>
  </div>
  <div class='remark'>
    <% if current_user.mobile? %>
    <div>
      完成于<%= time_ago_in_words current_user.created_at, false %>前
    </div>
    <div>
      已获得麦粒：<b>500</b>    
    </div>
    <% else %>
    <div>
      可获得麦粒：<b>500</b>    
    </div>
    <% end %>
  </div>
  <div class='tools'>
    <% if current_user.mobile? %>    
    <%= link_to_function '已经领取','', :class => 'corner done' %>
    <% else %>
    <%= link_to '立即绑定', edit_user_url(current_user), :target => :blank, :class => :corner %>
    <% end %>
  </div>
  <% if not current_user.mobile?  %>
  <dl id="fetion_feeds" class='feeds'>
    <dt>近期：</dt>
    <% Feed::MoneyFetion.all(:order => 'created_at desc', :limit => 20).each_with_index do |feed, index| %>
    <dd class='feed' style='<%= index == 0 ? '' : 'display:none' %>'><%= feed_to_html feed %></dd>
    <% end %>
  </dl>
  <script type="text/javascript" charset="utf-8">
    setInterval("next_feed('fetion_feeds')",5000);
  </script>
  <% end %>
</div>